import Request from "@/utils/Request";
//获取设备列表
export const getDeviceList = async data => {
    return await Request.postRequest('/garbageApp/APP/equipment/getlist',2,data)
}
//查看设备详情
export const goLookDeviceDetails = async data => {
    return await Request.postRequest(`/garbageApp/APP/equipment/getinfo/${data.id}`,2,data)
}
//获取清运信息
export const getRemovalInfo = async data => {
    return await Request.postRequest(`/garbageApp/APP/equipment/getRemovalInfo/${data.id}`,2,data)
}
//状态修正
export const updateDeviceStatue = async data => {
    return await Request.postRequest('/garbageApp/APP/equipment/update',2,data)
}
// 重启设备
export const goRestartDevice = async data => {
    return await Request.postRequest(`/garbageSys/instruction/restart/${data.id}`,2,data)
}
//上传运清结果
export const goUpdateClearResult = async data => {
    return await Request.postRequest('garbageApp/clearthedoor/feedback',2,data)
}
//查看投递记录
export const goLookEquipmentDelivery = async data => {
    return await Request.postRequest('/garbageApp/clearthedoor/equipmentDelivery',2,data)
}
//上报异常
export const goReportAnomalies = async data => {
    return await Request.postRequest('/garbageApp/APP/exception/add',2,data)
}